package classrecord;

import classrecord.classes.database.studentnametbl.STUDENTNAMETBLDao;
import classrecord.classes.database.studentnametbl.STUDENTNAMETBLDomain;

public class InsertIntoStudentNameTbl {

	public static void main(String[] args) {

		STUDENTNAMETBLDomain studentnametblDomain = new STUDENTNAMETBLDomain();
		studentnametblDomain.setStudentNumber("2005005333");
		studentnametblDomain.setLastName("Sawi");
		studentnametblDomain.setGivenName("Christopher");
		studentnametblDomain.setMiddleInitial("M");
		studentnametblDomain.setMiddleName("Manuel");
		studentnametblDomain.setNameExtension("");

		STUDENTNAMETBLDao studentnametblDao = new STUDENTNAMETBLDao();
		studentnametblDao.setStudentnametblDomain(studentnametblDomain);

		boolean wasInserted = studentnametblDao.add();
		System.out.println("wasInserted: " + wasInserted);
	}

}
